import { Component, OnInit, AfterViewInit } from '@angular/core';
import * as $ from 'jquery';

@Component({
    templateUrl: './qknotice-base.component.html',
    styleUrls: ['./qknotice-base.component.scss']
})
export class QkNoticeBaseComponent implements OnInit {

    constructor() { }

    ngOnInit() {
        $('#expand').click(function () {
            if ($("#left-menu").hasClass("extended")) {
                $("#left-menu").removeClass('extended');
                $(".notice-content-area").width($(".notice-content-area").width()+140);
            }
            else {
                $("#left-menu").addClass('extended');
                $(".notice-content-area").width($(".notice-content-area").width()-140);
            }
        });
    }

}
